﻿using Entity;
using System.Collections.Generic;

namespace IRepository
{
    public interface ITargetFormRepository
    {
        /// <summary>
        /// 获取所有目标表单
        /// </summary>
        List<TargetForm> GetAll();

        /// <summary>
        /// 根据表单名称获取ID
        /// </summary>
        int? GetTargetIdByName(string targetFormName);

        /// <summary>
        /// 根据ID获取目标表单
        /// </summary>
        TargetForm GetById(int target_id);

        int GetIdByFormName(string target_form);

        bool ExistsByFormName(string targetFormName);
        Task<TargetForm> GetByFormNameAsync(string formName);
    }
}
